Android Concurrency (Android Deep Dive) by Meike G. Blake

Android Concurrency (Android Deep Dive) by Meike G. Blake

Author:Meike, G. Blake [Meike, G. Blake]
Language: eng
Format: epub
Publisher: Pearson Education
Published: 2016-06-26T17:00:00+00:00


Started Service Essentials

In general terms, a started Service is usually more autonomous. To start a Service, a client creates a small package of parameters, an Intent, and then uses the Intent as the argument to the Context method, startService. A Service receives the Intent asynchronously as an argument to its onStartCommand method. It performs the task represented by the Intent, frequently without any further interaction with the client. Like a method with void return type, started Services frequently do not return an explicit result. Figure 6.1 illustrates an Activity starting a Service, to perform an asynchronous task.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.